#include"Seqlist.h"

void test1()
{
	Seqlist SL;
	SeqListInit(&SL);
	SeqListPushBack(&SL, 1);
	SeqListPushBack(&SL, 2);
	SeqListPushBack(&SL, 3);
	SeqListPushBack(&SL, 4);
	Seqlistprint(&SL);

	SeqListPopBack(&SL);
	SeqListPopBack(&SL);
	SeqListPopBack(&SL);
	SeqListPopBack(&SL);
	SeqListPopBack(&SL);
	SeqListPushBack(&SL, 5);
	Seqlistprint(&SL);
}

void test2()
{
	Seqlist SL;
	SeqListInit(&SL);
	SeqListPushBack(&SL, 2);
	SeqListPushBack(&SL, 3);
	SeqListPushBack(&SL, 4);
	SeqListPushFront(&SL,1);
	Seqlistprint(&SL);

	SeqListPopFront(&SL);
	SeqListPopFront(&SL);
	SeqListPopFront(&SL);
	//SeqListPopFront(&SL);
	Seqlistprint(&SL);
	SeqlistDestory(&SL);
}

void test3()
{
	Seqlist SL;
	SeqListInit(&SL);
	SeqListPushBack(&SL, 1);
	SeqListPushBack(&SL, 2);
	SeqListPushBack(&SL, 3);
	SeqListPushBack(&SL, 4);
	SeqlistInsert(&SL, 10, 2);
	SeqlistErase(&SL, 3);
	Seqlistprint(&SL);
	//printf("%d\n",SeqlistFind(&SL, 10));
}
int main()
{
	//test1();
	//test2();
	test3();
	return 0;
}